package com.xiaomengkuan.product.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * @author Faraj Mujey
 * -- Creation Time: 2021-01-26 7:09 下午, File Encoding: utf8 --
 */
@ApiModel("商品POJO")
@Data
@ToString
@TableName(value = "scp_product")
public class Product {
    @ApiModelProperty("id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    @ApiModelProperty("商品名称")
    private String title;
    @ApiModelProperty("商品主图")
    private String img;
    @ApiModelProperty("喜欢的数量")
    @TableField("`like`")
    private int like;
    @ApiModelProperty("收藏的数量")
    private int favourite;
    @ApiModelProperty("价格")
    private BigDecimal price;
    @ApiModelProperty("排序")
    private int sort;
    @ApiModelProperty("简介")
    private String summary;
}
